//
//  City.m
//  07-homeWork-MRC
//
//  Created by 402030900@qq.com on 16/7/12.
//  Copyright © 2016年 402030900@qq.com. All rights reserved.
//

#import "City.h"

@implementation City
-(void)dealloc{
    [_array release];
    [super dealloc];
}
-(instancetype)initWithName:(NSString *)name{
    if (self) {
        self = [super init];
        _array = [NSMutableArray array];
    }
    return self;
}
-(void)setArray:(NSMutableArray *)array{
    if (_array != array) {
        [_array release];
       _array = [_array retain];
    }
}
-(instancetype)initWithName:(NSString *)name Number:(NSString *)number{
    self = [super initWithName:name Number:number];
    if (self) {
        _array = [NSMutableArray array];
    }
    return self;
}
@end
